# !/bin/sh
rm -f /tmp/stratovirt.socket

./target/release/stratovirt \
    -machine q35 \
    -kernel /root/iso/std-vmlinuxz \
    -append "console=ttyS0 root=/dev/vda reboot=k panic=1" \
	 -drive file=/usr/share/edk2/ovmf/OVMF_CODE.fd,if=pflash,unit=0,readonly=true \
	 -drive file=/usr/share/edk2/ovmf/OVMF_VARS.fd,if=pflash,unit=1 \
	 -device pcie-root-port,port=0x0,addr=0x1.0x0,bus=pcie.0,id=pcie.1 \
    -drive file=/home/rootfs.ext4,id=rootfs,readonly=off \
    -device virtio-blk-pci,drive=rootfs,bus=pcie.1,addr=0x0.0x0,id=blk-0 \
    -qmp unix:/tmp/stratovirt.socket,server,nowait \
    -serial stdio




